package com.moqianfan.mcuassistant.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Unique;

import cn.bmob.v3.BmobObject;

/**
 * Created by Administrator on 2017/6/19.
 * 文章列表
 */
@Entity
public class Article extends BmobObject {
    private String title;
    private String desc;
    private String author;
    @Unique
    private String url;
    private String picUrl;
    private String time;

    @Generated(hash = 363561202)
    public Article(String title, String desc, String author, String url,
            String picUrl, String time) {
        this.title = title;
        this.desc = desc;
        this.author = author;
        this.url = url;
        this.picUrl = picUrl;
        this.time = time;
    }

    @Generated(hash = 742516792)
    public Article() {
    }

    @Override
    public String toString() {
        return "Article{" +
                "title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", url='" + url + '\'' +
                ", picUrl='" + picUrl + '\'' +
                ", time='" + time + '\'' +
                '}';
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPicUrl() {
        return this.picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getTime() {
        return this.time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
